package com.bookcode.entity;

import lombok.Data;

import javax.persistence.*;
import java.util.Date;


/*发起的签到表，发起一个签到码进行签到*/
@Data
@Table(name = "t_sign_key")
@Entity
public class Sign extends BaseEntity {



    @Column(name = "course_id")
    private String courseId;//课程id
    @Column(name = "sign_key")
    private String sign_key;//签到码
    @Column(name = "state",nullable = true)
    private boolean state;//状态，是否可签到
    @Column(name = "sign_time" )
    private Date time;//签到码开始时间

    @Override
    public String toString() {
        return "Sign{" +
                "courseId='" + courseId + '\'' +
                ", sign_key='" + sign_key + '\'' +
                ", state=" + state +
                ", time=" + time +
                '}';
    }

    //    @Column
//    private Boolean end;

    /*public Boolean getEnd() {
        return end;
    }

    public void setEnd(Boolean end) {
        this.end = end;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }*/
}
